package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(30);not null;comment:账号"`
	Password string `gorm:"type:char(32);not null;comment:密码"`
}
type Shop struct {
	gorm.Model
	HeadImage string  `gorm:"type:varchar(500);not null;comment:商品图片"`
	Name      string  `gorm:"type:varchar(30);not null;comment:商品名称"`
	Price     float64 `gorm:"type:decimal(10,2);not null;comment:商品价格"`
	UserId    int64   `gorm:"type:int(11);not null;"`
}
